Skip to content

Make authenticationSuccessHandler Configurable in Resource Server DSL#18895

Open
iain-henderson wants to merge 4 commits intospring-projects:mainfrom
iain-henderson:feature/oauth2resourceserverspec-success-handler
Open

Make authenticationSuccessHandler Configurable in Resource Server DSL#18895
iain-henderson wants to merge 4 commits intospring-projects:mainfrom
iain-henderson:feature/oauth2resourceserverspec-success-handler

Conversation

@iain-henderson
Copy link
Copy Markdown

The lack of a configurable ServerAuthenticationSuccessHandler in OAuth2ResourceServerSpec seemed like an oversight.

This PR corrects that.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Mar 14, 2026
Copy link
Copy Markdown
Contributor

@jzheaux jzheaux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @iain-henderson! I've left some feedback inline. Will you also please add a unit test to OAuth2ResourceServerSpecTests to confirm the authenticationSuccessHandler is used when specified?

@jzheaux
Copy link
Copy Markdown
Contributor

jzheaux commented Mar 20, 2026

In addition to the review comments, will you please make sure to sign the DCO?

@jzheaux jzheaux self-assigned this Mar 20, 2026
@jzheaux jzheaux added in: config An issue in spring-security-config type: enhancement A general enhancement in: oauth2 An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose) and removed status: waiting-for-triage An issue we've not yet triaged labels Mar 20, 2026
@jzheaux jzheaux added this to the 7.1.0-RC1 milestone Mar 20, 2026
@jzheaux jzheaux added the status: waiting-for-feedback We need additional information before we can continue label Mar 23, 2026
@iain-henderson iain-henderson force-pushed the feature/oauth2resourceserverspec-success-handler branch from 1b5f59b to c342b89 Compare April 6, 2026 12:04
@iain-henderson iain-henderson reopened this Apr 6, 2026
@iain-henderson
Copy link
Copy Markdown
Author

DCO Signoff fixed and unit tests added. Please review to see if changes cover what is needed.

@spring-projects-issues spring-projects-issues added status: feedback-provided Feedback has been provided and removed status: waiting-for-feedback We need additional information before we can continue labels Apr 6, 2026
Signed-off-by: Iain Henderson <Iain.henderson@mac.com>
@jzheaux jzheaux force-pushed the feature/oauth2resourceserverspec-success-handler branch from 4a329ed to 3329884 Compare April 17, 2026 16:27
jzheaux added 3 commits April 17, 2026 10:32
Signed-off-by: Josh Cummings <3627351+jzheaux@users.noreply.github.com>
Signed-off-by: Josh Cummings <3627351+jzheaux@users.noreply.github.com>
Signed-off-by: Josh Cummings <3627351+jzheaux@users.noreply.github.com>
@jzheaux
Copy link
Copy Markdown
Contributor

jzheaux commented Apr 17, 2026

@iain-henderson can you clarify for me what you are needing this for? Is the primary motivation to address what feels like an oversight?

@jzheaux jzheaux changed the title Add a configurable ServerAuthenticationSuccessHandler to OAuth2Resour… Make authenticationSuccessHandler Configurable in Resource Server DSL Apr 17, 2026
@jzheaux jzheaux added status: waiting-for-feedback We need additional information before we can continue and removed status: feedback-provided Feedback has been provided labels Apr 17, 2026
@jzheaux jzheaux removed this from the 7.1.0-RC1 milestone Apr 17, 2026
@jzheaux
Copy link
Copy Markdown
Contributor

jzheaux commented Apr 17, 2026

I've added some polish as well as the symmetric Kotlin support. However, to be clear, I'd like to wait until we have a clear use case to add this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in: config An issue in spring-security-config in: oauth2 An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose) status: waiting-for-feedback We need additional information before we can continue type: enhancement A general enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants